cask 'wallpaper-wizard' do
  version '2.2.0'
  sha256 '8237a147a685cf4831a637b3fbf113ccb14f1150801450b2f1cc96f2f5b7942c'

  # dl.devmate.com/com.macpaw.WallWiz-site/ was verified as official when first introduced to the cask
  url "https://dl.devmate.com/com.macpaw.WallWiz-site/WallpaperWizard-#{version.major}.dmg"
  appcast 'https://updates.devmate.com/com.macpaw.WallWiz-site.xml'
  name 'Wallpaper Wizard'
  homepage 'https://wallwiz.com/'

  app 'Wallpaper Wizard.app'

  uninstall quit: 'com.macpaw.WallWiz-site'

  zap trash: [
               '~/Library/Preferences/com.macpaw.WallWiz-site.plist',
               '~/Library/Application Support/Wallpaper Wizard',
               '~/Library/Application Support/com.macpaw.WallWiz-site',
               '~/Library/Caches/com.macpaw.WallWiz-site',
               '~/Library/Cookies/com.macpaw.WallWiz-site.binarycookies',
               '~/Library/Logs/com.macpaw.WallWiz-site',
             ]
end
